package org.yu.team2023.flashdays;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

import java.util.ArrayList;
import java.util.List;

public class ModSounds {
    private static final DeferredRegister<SoundEvent> SOUNDS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS,
            FlashDays.MODID);

    private static RegistryObject<SoundEvent> registerSimple(String key){
        return  SOUNDS.register(key,
                () -> SoundEvent.createVariableRangeEvent(new ResourceLocation(FlashDays.MODID, key)));
    }
    public static void init(){
       SOUNDS.register( FMLJavaModLoadingContext.get().getModEventBus());
    }
}
